<header>
	<div class="main">
		<strong><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></strong>
	</div>
	<nav>
		{{ with .Site.Menus.main }}
                {{ $navbar_len := len . }}
                {{ range $i, $nav_item := . }}
                    <a class="menu" href="{{ $nav_item.URL }}" title="{{ $nav_item.Name }}">
                        {{ $nav_item.Pre }}{{ $nav_item.Name }}{{ $nav_item.Post }}
                    </a>
                    {{ if ne (add $i 1) $navbar_len }}
                        /
                    {{ end }}
                {{ end }}
            {{ end }}
            {{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "light") -}}
            / <a id="dark-mode-toggle" style="line-height:unset"></a>
            {{ end }}
	</nav>
</header>
{{- if isset .Site.Params "subtitle" -}}
	<p>{{ .Site.Params.Subtitle | markdownify }}</p>
{{- end -}}
